/*
 * RisicoBehandelingStatusCellRenderer.java
 *
 * Created on 19 juni 2007, 13:36
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package net.jwtools.tmt.ui.renderer;

import com.l2fprod.common.swing.renderer.DefaultCellRenderer;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JTable;

/**
 *
 * @author loonn01
 */
public class VisitTypeCellRenderer extends DefaultCellRenderer {
    
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
        if (value.equals("A")) this.setForeground(Color.RED.darker());
        else if (value.equals("O")) this.setForeground(Color.GREEN.darker());
        return this;
    }
    
}
